package com.tm.controller;

import com.tm.result.Result;
import com.tm.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xiaobai
 * @create 2022-12-16 19:28
 */
@RestController
@RequestMapping("api/banner")
public class BannerController {

    @Autowired
    private BannerService bannerService;

    //banner轮播图
    @PostMapping("carouselBanner")
    public Result carouselBanner(){

        return bannerService.carouselBanner();
    }

}
